<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>路线页</title>
    <style>
		body {
            margin: 0;
            font-family: Arial, sans-serif;
        }
        header {
            background-color: #4A38AA;
            color: #9A983C;
            padding: 1px;
            text-align: center;
        } 
		 #schedule {
            font-size: 16px;
            font-weight: bold;
            margin-top: 20px;
            border: 2px solid #4A38AA;
            border-radius: 10px;
            padding: 20px;
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <header> 
        <h1>路线&nbsp;</h1>
    </header>

    <div id="schedule">

        <?php 
		// 连接数据库
		include('connection.php');
		
		session_start();
		$userid = $_SESSION['userid'];
		$result = mysqli_query($connection, "SELECT * FROM schedule WHERE userid = '$userid';");
		
		while ($row = mysqli_fetch_assoc($result)) {
    // 输出日程信息
    echo '<a href="comment.php?sense_name=' . urlencode($row['sense_name']) . '">景点名称：' . $row['sense_name'] . '</a>';
	echo "<a>							<a>";
	echo '<a href="deletesense.php?sense_name=' . $row['sense_name'] . '">删除</a><br>';
	
}
?>
    </div>

    <script src="main.js"></script>  <!-- 在这里插入JavaScript代码 -->
</body>
</html>